package com.devbobcorn.misaka;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

import com.devbobcorn.misaka.blocks.ModBlocks;
import com.devbobcorn.misaka.items.ModItems;
import com.devbobcorn.misaka.sounds.ModSoundEvents;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(Misaka.MODID)
public class Misaka {
    public static final String MODID = "misaka";

    // Directly reference a log4j logger.
    public static final Logger LOGGER = LogManager.getLogger();

    public Misaka() {
        LOGGER.info("君の指先を舞ってる電光は、私の一生変わらない信仰であり、このレールガンだけが永遠に生きてる！");
        // Register ourselves for server and other game events we are interested in
        MinecraftForge.EVENT_BUS.register(this);
        
        final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();

		ModBlocks.BLOCKS.register(modEventBus);
        ModItems.ITEMS.register(modEventBus);
        ModSoundEvents.SOUND_EVENTS.register(modEventBus);
    }
}
